﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RBOSS.Business.Checkout;

namespace RBOSS.Business.CreditCard
{
    public interface ICreditCardSubsystem
    {
        bool IsValidCreditCard(ICreditCard billingInfo, decimal amount);
        bool DeductAmount(ICreditCard billingInfo, decimal amount);
        void AddCreditCardInformation(ICreditCard creditCard);
        IList<CreditCardType> GetAllCreditCardTypes();
        List<CreditCard> GetValidCustomerCreditCards(int customerId);
        void DeleteCreditCard(int creditCardId);
    }
}
